package com.example.springbooksystem.model;

import lombok.Data;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description：
 *
 * @author: zxj
 * @date: 2024-01-25
 * @time: 16:35:31
 */
@Data
public class PageResult<T> {
    private List<T> records;
    private Integer total;
    private PageRequest pageRequest;

    public PageResult(List<T> records, Integer total, PageRequest pageRequest) {
        this.records = records;
        this.total = total;
        this.pageRequest = pageRequest;
    }
}
